package com.bytezero.inherit2;

/*
 *  定义kids类继承ManKid,并包括 成员变量int yearsOld;
 *  方法printAge() 打印 yearsOld的值
 * 
 */
public class Kids extends ManKind
{
   private  int  yearsOld;
   
	public Kids() 
	{
		
	}


	public Kids(int yearsOld) 
	{
		
		this.yearsOld = yearsOld;
	}

   
   
   public void printAge() 
   {
	   System.out.println(yearsOld);
   }

   
	public int getYearsOld() 
	{
		return yearsOld;
	}
	
	public void setYearsOld(int yearsOld) 
	{
		this.yearsOld = yearsOld;
	}




	   
   
}





































